NMOS logic